Copy CodeThe code is as follows:
Class zip
{
var $datasec, $ctrl _dir = Array ();
var $eof _ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00";
var $old _offset = 0; var $dirs = Array (".");
function get_list ($zip _name)
{
$zip = @fopen ($zip _name, '
// The following is the class and function definition classZip // ZIP compression class {var $ datasec, $ ctrl_dir = array (); var $ eof_ctrl_dir = & quot; \ x50 \ x4b \ x05 \ x06 \ x00 \ x00 \ x00 \ x00 & quot; var $ old_offset = 0
// The
using zip commands to compress and decompress files in LinuxTransferred from http://www.itivy.com/linux/archive/2012/3/22/linux-zip.html
In Windows, we use the most of the decompression software is winrar, this software is very convenient for us
1 to export to a ZIP file, you must first write the content to a file. Create the file and then write the content to the file. Writes content to a file through a stream.
such as: File File=new file (filename_);
FileOutputStream fileoutputstream=new
To operate on a ZIP file, the following three classes are used primarily:1, ZipFile. Represents a class associated with a zip file operation. You can use this class to create a zip file or to open a zip file.2, Ziparchive. Represents a Zip document
A: The module used and a brief introduction of NPM documentation;Request:node the requested module, which can be used to request the server's interfaceHttps://www.npmjs.com/package/requestFS: Read and write files, very
The tzipfile class is mainly used in a unit. The most convenient method is its class method:
Tzipfile. extractzipfile () // decompress the ZIP file to the specified folder tzipfile. isvalid () // determine whether the specified file is a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.